package com.gaxy.auth.domain.service;


import com.gaxy.auth.domain.entity.AuthPermissionBO;

import java.util.List;

/**
 * 权限领域Service
 */
public interface AuthPermissionDomainService {

    /**
     * 新增权限
     *
     * @param authPermissionBO
     * @return
     */
    Boolean add(AuthPermissionBO authPermissionBO);

    /**
     * 修改权限
     *
     * @param authPermissionBO
     * @return
     */
    Boolean update(AuthPermissionBO authPermissionBO);

    /**
     * 删除权限
     *
     * @param authPermissionBO
     * @return
     */
    Boolean delete(AuthPermissionBO authPermissionBO);

    /**
     * 查询用户权限
     * @param userName
     * @return
     */
    List<String> getPermission(String userName);
}
